<?xml version="1.0" encoding="UTF-8" ?>
<persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
  version="2.0" xmlns="http://java.sun.com/xml/ns/persistence">
  <persistence-unit name="oss4homeData" transaction-type="RESOURCE_LOCAL">
    <class>de.oss4home.cc.business.Device</class>
    <class>de.oss4home.cc.business.Controller</class>
    <class>de.oss4home.cc.business.Group</class>
    <class>de.oss4home.cc.business.DeviceInfo</class>
    <class>de.oss4home.cc.business.AutoAction</class>
    <class>de.oss4home.cc.business.AutomationRule</class>
    <class>de.oss4home.cc.business.AutoTrigger</class>
    <class>de.oss4home.cc.business.MailTemplate</class>
    <class>de.oss4home.cc.business.Setting</class>
 <properties>
  <property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver" />
  <property name="javax.persistence.jdbc.url" value="jdbc:derby:oss4home_DB;create=true" />
  <property name="javax.persistence.jdbc.user" value="user" />
  <property name="javax.persistence.jdbc.password" value="password" />

  <!-- EclipseLink should create the database schema automatically -->
  <!--  <property name="eclipselink.ddl-generation" value="drop-and-create-tables" /> -->
 <property name="eclipselink.ddl-generation" value="create-or-extend-tables" /> 
  <property name="eclipselink.ddl-generation.output-mode" value="both" />
 </properties>

  </persistence-unit>	
</persistence>